﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;

namespace WebApiPro.Areas.testApi.Controllers
{
    public class GetNameApiController : ApiController
    {


        [HttpPost]
        public AjaxCode GainName()
        {
            AjaxCode result = new AjaxCode();
            var s = HttpContext.Current.Request.Form["suborderno"];
            result.Message = s;
            result.Code = 1000;
            return result;
        }

    }

    public class AjaxCode
    {
        public string Message { get; set; }
        public int Code { get; set; }
    }
}
